package com.itcncp.ucenter.dao.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ItcsPayerInfoExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public ItcsPayerInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPayerIdIsNull() {
            addCriterion("payer_id is null");
            return (Criteria) this;
        }

        public Criteria andPayerIdIsNotNull() {
            addCriterion("payer_id is not null");
            return (Criteria) this;
        }

        public Criteria andPayerIdEqualTo(Byte value) {
            addCriterion("payer_id =", value, "payerId");
            return (Criteria) this;
        }

        public Criteria andPayerIdNotEqualTo(Byte value) {
            addCriterion("payer_id <>", value, "payerId");
            return (Criteria) this;
        }

        public Criteria andPayerIdGreaterThan(Byte value) {
            addCriterion("payer_id >", value, "payerId");
            return (Criteria) this;
        }

        public Criteria andPayerIdGreaterThanOrEqualTo(Byte value) {
            addCriterion("payer_id >=", value, "payerId");
            return (Criteria) this;
        }

        public Criteria andPayerIdLessThan(Byte value) {
            addCriterion("payer_id <", value, "payerId");
            return (Criteria) this;
        }

        public Criteria andPayerIdLessThanOrEqualTo(Byte value) {
            addCriterion("payer_id <=", value, "payerId");
            return (Criteria) this;
        }

        public Criteria andPayerIdIn(List<Byte> values) {
            addCriterion("payer_id in", values, "payerId");
            return (Criteria) this;
        }

        public Criteria andPayerIdNotIn(List<Byte> values) {
            addCriterion("payer_id not in", values, "payerId");
            return (Criteria) this;
        }

        public Criteria andPayerIdBetween(Byte value1, Byte value2) {
            addCriterion("payer_id between", value1, value2, "payerId");
            return (Criteria) this;
        }

        public Criteria andPayerIdNotBetween(Byte value1, Byte value2) {
            addCriterion("payer_id not between", value1, value2, "payerId");
            return (Criteria) this;
        }

        public Criteria andPayerWayIsNull() {
            addCriterion("payer_way is null");
            return (Criteria) this;
        }

        public Criteria andPayerWayIsNotNull() {
            addCriterion("payer_way is not null");
            return (Criteria) this;
        }

        public Criteria andPayerWayEqualTo(String value) {
            addCriterion("payer_way =", value, "payerWay");
            return (Criteria) this;
        }

        public Criteria andPayerWayNotEqualTo(String value) {
            addCriterion("payer_way <>", value, "payerWay");
            return (Criteria) this;
        }

        public Criteria andPayerWayGreaterThan(String value) {
            addCriterion("payer_way >", value, "payerWay");
            return (Criteria) this;
        }

        public Criteria andPayerWayGreaterThanOrEqualTo(String value) {
            addCriterion("payer_way >=", value, "payerWay");
            return (Criteria) this;
        }

        public Criteria andPayerWayLessThan(String value) {
            addCriterion("payer_way <", value, "payerWay");
            return (Criteria) this;
        }

        public Criteria andPayerWayLessThanOrEqualTo(String value) {
            addCriterion("payer_way <=", value, "payerWay");
            return (Criteria) this;
        }

        public Criteria andPayerWayLike(String value) {
            addCriterion("payer_way like", value, "payerWay");
            return (Criteria) this;
        }

        public Criteria andPayerWayNotLike(String value) {
            addCriterion("payer_way not like", value, "payerWay");
            return (Criteria) this;
        }

        public Criteria andPayerWayIn(List<String> values) {
            addCriterion("payer_way in", values, "payerWay");
            return (Criteria) this;
        }

        public Criteria andPayerWayNotIn(List<String> values) {
            addCriterion("payer_way not in", values, "payerWay");
            return (Criteria) this;
        }

        public Criteria andPayerWayBetween(String value1, String value2) {
            addCriterion("payer_way between", value1, value2, "payerWay");
            return (Criteria) this;
        }

        public Criteria andPayerWayNotBetween(String value1, String value2) {
            addCriterion("payer_way not between", value1, value2, "payerWay");
            return (Criteria) this;
        }

        public Criteria andPayerScenIsNull() {
            addCriterion("payer_scen is null");
            return (Criteria) this;
        }

        public Criteria andPayerScenIsNotNull() {
            addCriterion("payer_scen is not null");
            return (Criteria) this;
        }

        public Criteria andPayerScenEqualTo(String value) {
            addCriterion("payer_scen =", value, "payerScen");
            return (Criteria) this;
        }

        public Criteria andPayerScenNotEqualTo(String value) {
            addCriterion("payer_scen <>", value, "payerScen");
            return (Criteria) this;
        }

        public Criteria andPayerScenGreaterThan(String value) {
            addCriterion("payer_scen >", value, "payerScen");
            return (Criteria) this;
        }

        public Criteria andPayerScenGreaterThanOrEqualTo(String value) {
            addCriterion("payer_scen >=", value, "payerScen");
            return (Criteria) this;
        }

        public Criteria andPayerScenLessThan(String value) {
            addCriterion("payer_scen <", value, "payerScen");
            return (Criteria) this;
        }

        public Criteria andPayerScenLessThanOrEqualTo(String value) {
            addCriterion("payer_scen <=", value, "payerScen");
            return (Criteria) this;
        }

        public Criteria andPayerScenLike(String value) {
            addCriterion("payer_scen like", value, "payerScen");
            return (Criteria) this;
        }

        public Criteria andPayerScenNotLike(String value) {
            addCriterion("payer_scen not like", value, "payerScen");
            return (Criteria) this;
        }

        public Criteria andPayerScenIn(List<String> values) {
            addCriterion("payer_scen in", values, "payerScen");
            return (Criteria) this;
        }

        public Criteria andPayerScenNotIn(List<String> values) {
            addCriterion("payer_scen not in", values, "payerScen");
            return (Criteria) this;
        }

        public Criteria andPayerScenBetween(String value1, String value2) {
            addCriterion("payer_scen between", value1, value2, "payerScen");
            return (Criteria) this;
        }

        public Criteria andPayerScenNotBetween(String value1, String value2) {
            addCriterion("payer_scen not between", value1, value2, "payerScen");
            return (Criteria) this;
        }

        public Criteria andPayChannelIsNull() {
            addCriterion("pay_channel is null");
            return (Criteria) this;
        }

        public Criteria andPayChannelIsNotNull() {
            addCriterion("pay_channel is not null");
            return (Criteria) this;
        }

        public Criteria andPayChannelEqualTo(String value) {
            addCriterion("pay_channel =", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelNotEqualTo(String value) {
            addCriterion("pay_channel <>", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelGreaterThan(String value) {
            addCriterion("pay_channel >", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelGreaterThanOrEqualTo(String value) {
            addCriterion("pay_channel >=", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelLessThan(String value) {
            addCriterion("pay_channel <", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelLessThanOrEqualTo(String value) {
            addCriterion("pay_channel <=", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelLike(String value) {
            addCriterion("pay_channel like", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelNotLike(String value) {
            addCriterion("pay_channel not like", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelIn(List<String> values) {
            addCriterion("pay_channel in", values, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelNotIn(List<String> values) {
            addCriterion("pay_channel not in", values, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelBetween(String value1, String value2) {
            addCriterion("pay_channel between", value1, value2, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelNotBetween(String value1, String value2) {
            addCriterion("pay_channel not between", value1, value2, "payChannel");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}